Scrollbar Class

The scrollbar control.

Events

GotFocus

LostFocus

MouseDown

MouseDrag

MouseUp

ValueChanged


Properties

AcceptFocus

LineStep

LiveScroll

Maximum

Minimum

PageStep

Value


Methods

None

More information available in parent classes: RectControl:Control:Object

Because this is a RectControl, see the RectControl for other properties and events that are common to all RectControl objects.


Examples

Changing the maximum value of a Scrollbar at runtime:

ScrollBar1.maximum=200

Setting the text of a StaticText control to the value of the Scrollbar when the user scrolls:

Sub ValueChanged()
 staticText1.text= Str(scrollbar1.value)

See also the discussion of scrolling ListBox controls horizontally using a Scrollbar control.


See Also

Slider control; RectControl class.